# generated with cmake/gen_cmake_skeleton.py, DO NOT MODIFY.
set(PUBLIC_HEADERS
    hmm-test-utils.h
    hmm-topology.h
    hmm-utils.h
    posterior.h
    transition-model.h
    tree-accu.h
)

add_library(kaldi-hmm
    hmm-test-utils.cc
    hmm-topology.cc
    hmm-utils.cc
    posterior.cc
    transition-model.cc
    tree-accu.cc
)

target_include_directories(kaldi-hmm PUBLIC 
     $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/..>
     $<INSTALL_INTERFACE:include/kaldi>
)

target_link_libraries(kaldi-hmm PUBLIC
    kaldi-tree
    kaldi-util
    kaldi-matrix
    kaldi-base
    -lcblas
    -llapack
)

if(KALDI_BUILD_TEST)
    add_kaldi_test_executable(NAME hmm-topology-test SOURCES hmm-topology-test.cc DEPENDS kaldi-hmm)
    add_kaldi_test_executable(NAME hmm-utils-test SOURCES hmm-utils-test.cc DEPENDS kaldi-hmm)
    add_kaldi_test_executable(NAME posterior-test SOURCES posterior-test.cc DEPENDS kaldi-hmm)
    add_kaldi_test_executable(NAME transition-model-test SOURCES transition-model-test.cc DEPENDS kaldi-hmm)
endif()

install(TARGETS kaldi-hmm
    EXPORT kaldi-targets
    ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT kaldi
    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT kaldi
    RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT kaldi
)
install(FILES ${PUBLIC_HEADERS} DESTINATION include/kaldi/hmm COMPONENT kaldi)

